package cn.com.cifi.mars.mapper.mars;

import cn.com.cifi.mars.bean.dto.returnPlan.ReturnCoefficientDetailDto;
import cn.com.cifi.mars.entity.ReturnCoefficientDetail;
import cn.com.cifi.mars.entity.ReturnPlanVersionCoefficient;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 回款计划版本系数表 Mapper 接口
 * </p>
 *
 * @author JingYuanXiang
 * @since 2020-11-05
 */
public interface ReturnPlanVersionCoefficientMapper extends BaseMapper<ReturnPlanVersionCoefficient> {

    //获取回款系数详情列表
    List<ReturnCoefficientDetail> selectReturnCoefficientDetailListByReturnPlanVersionId(@Param("returnPlanVersionId") String returnPlanVersionId,@Param("isDel") int isDel);
    //逻辑删除
    void delByReturnPlanVersionId(@Param("returnPlanVersionId") String returnPlanVersionId,@Param("alias") String alias, @Param("isDel") int isDel);
    //获取回款系数详情列表
    List<ReturnCoefficientDetailDto> selectReturnCoefficientDetailListByReturnPlanVersionIdList(@Param("returnPlanVersionIdList") List<String> returnPlanVersionIdList, @Param("isDel") int isDel);
	
    void copyVersionCoefficient(@Param("sourceVersionId")String sourceVersionId, @Param("targetVersionId")String targetVersionId);
}
